﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CJJCH.Web.Controls
{
    public partial class ExpertTop : System.Web.UI.UserControl
    {
        private int secondId;
        public int SecondId
        {
            get { return secondId; }
            set { secondId = value; }
        }
        private string secondName;
        public string SecondName
        {
            get { return secondName; }
            set { secondName = value; }
        }    
     
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitDataBinding();
            }
        }

     
        private void InitDataBinding()
        {
            if (SecondId != 0 && !string.IsNullOrEmpty(SecondName))
            {
                lnkNewsName.Text = SecondName + "列表";
                
                lnkNewsName.NavigateUrl = "~/Manage/ExpertList.aspx?SecondId=" + LTP.Common.StringClass.EncodeUrl(SecondId.ToString()) + "&SecondName=" + LTP.Common.StringClass.EncodeUrl(secondName);            
                
            }
            else
            {
                LTP.Common.WindowClass.WindowBack("操作错误！");
            }
        }

    }
}